import request from '@/utils/request'

// 查询app角色列表
export function allApprole (query) {
  return request({
    url: '/appManage/approle/all',
    method: 'get',
    params: query
  })
}

// 查询app角色列表
export function listApprole (query) {
  return request({
    url: '/appManage/approle/list',
    method: 'get',
    params: query
  })
}

// 查询app角色详细
export function getApprole (id) {
  return request({
    url: '/appManage/approle/' + id,
    method: 'get'
  })
}

// 新增app角色
export function addApprole (data) {
  return request({
    url: '/appManage/approle',
    method: 'post',
    data: data
  })
}

// 修改app角色
export function updateApprole (data) {
  return request({
    url: '/appManage/approle',
    method: 'put',
    data: data
  })
}

// 删除app角色
export function delApprole (id) {
  return request({
    url: '/appManage/approle/' + id,
    method: 'delete'
  })
}
